package com.heima.behavior.controller.v1;

import com.heima.behavior.service.ApUnlikeBehaviorService;
import com.heima.model.behavior.dto.UnLikesBehaviorDto;
import com.heima.model.common.dtos.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by ZYJ on 2021/6/5 0:08
 */
@RestController
@Api("不喜欢行为API")
@RequestMapping("api/v1/un_likes_behavior/")
public class ApUnlikeBehaviorController {
    @Autowired
    ApUnlikeBehaviorService apUnlikeBehaviorService;
    @PostMapping
    @ApiOperation("不喜欢,取消不喜欢")
    public ResponseResult unLike(@RequestBody UnLikesBehaviorDto dto){
        return  apUnlikeBehaviorService.unlike(dto);
    }

}
